<?php
header('content-type:text/html;charset=utf-8');

function isPic($filename){
//    后缀名截取出来
    $re = ltrim(strrchr($filename,'.'),'.');
    echo $re;
}

isPic('6666.avi');








